package com.fa.ojcodesandbox.security;

import java.security.Permission;

/**
 * ClassName: DefaultSecurityManager
 * Package: com.fa.ojcodesandbox.security
 * Description: 禁用所有权限安全管理器
 *
 * @Author:
 * @Create: 2024/4/27 - 22:12
 * @Version: v1.0
 */
public class DenySecurityManager extends SecurityManager{

    // 检查所有的权限
    @Override
    public void checkPermission(Permission perm) {
        throw new SecurityException("权限异常：" + perm.toString());
    }
}
